#app {

  .main-container {
    // height: 100%;
    height: calc(100% - 134px);
    transition: margin-left .28s;
    margin-left: $base-sidebar-width;
    position: relative;
  }

  .sidebarHide {
    margin-left: $base-sidebar-width !important;
  }

  .sidebar-container {
    -webkit-transition: width .28s;
    transition: width 0.28s;
    width: $base-sidebar-width !important;
    // background-color: $base-menu-background;
    height: calc(100% - 70px);
    position: absolute;
    font-size: 0px;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
    box-shadow: 2px 0 6px rgba(0,21,41,.35);

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 70px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      // margin: 0 !important;
      margin-right: 16px;
      width: 1.5em;
      height: 1.5em;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
      // div{
      //   display: flex;
      //   justify-content: center;
      //   a{
      //     display: flex;
      //     justify-content: center;
      //   }
      // }
    }

    .el-menu-item, .menu-title {
      width: 100%;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      display: flex !important;
    }

    .el-menu-item .el-menu-tooltip__trigger {
      .svg-icon{
        margin: 0 !important;
      }
    }

    // menu hover
    .sub-menu-title-noDropdown,
    .el-sub-menu__title{
      &:hover {
        background-color: rgba(255, 255, 255, 0.06) !important;
      }
    }

    & .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .el-sub-menu .el-menu-item {
      min-width: $base-sidebar-width !important;

      &:hover {
        background-color: rgba(255, 255, 255, 0.06) !important;
      }
    }

    & .light .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .light .el-sub-menu .el-menu-item {
      // background-color: $base-sub-menu-background !important;

      &:hover {
        background-color: #e7eef6 !important;
        .svg-icon{
          fill:#409eff !important
        }
        color: #409eff;
      }
    }
    .light .el-sub-menu .el-sub-menu__title{
      &:hover {
        background-color: #e7eef6 !important;
        .svg-icon{
          fill:#409eff !important
        }
        color: #409eff;
      }
    }
    .light div a {
      &:hover {
        background-color: #e7eef6 !important;
        .svg-icon{
          fill:#409eff !important
        }
        .el-menu-item{
          color: #409eff;
        }
      }
    }

    .dark div a{
      background-color: #d9e7f1 !important;
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 71px !important;
      .el-sub-menu{
        width: 100%;
      }
    }
    .el-menu {
      div{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        a{
          display: flex;
          justify-content: center;
        }
      }
      div:not(:last-child){
        margin: 0 0 10px 0;
      }
    }
    .el-menu-item {
      // padding-left: 23px !important;
    }
    .main-container {
      margin-left: 71px !important;
    }

    .sub-menu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-sub-menu {
      overflow: hidden;
      &>.el-sub-menu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

      }
    }

    .el-menu--collapse {
      .el-sub-menu {
        &>.el-sub-menu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
          &>i {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-sub-menu {
    min-width: $base-sidebar-width !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      // width: $base-sidebar-width !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$base-sidebar-width, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
.el-menu--popup-container .nest-menu {
    &:hover {
      // you can use $sub-menuHover
      background-color: #e7eef6 !important;
      .svg-icon{
        fill: #409eff !important;
      }
      .el-menu-item{
        color: #409eff;
      }
      .el-sub-menu .el-sub-menu__title {
        color: #409eff;
      }
    }
  }
// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }
  .nest-menu .el-sub-menu>.el-sub-menu__title,a{
    &:hover {
      // you can use $sub-menuHover
      // background-color: rgba(255, 255, 255, 0.06) !important;
    }
  }
  .nest-menu .el-sub-menu>.el-sub-menu__title,
  .el-menu-item{
    &:hover {
      // you can use $sub-menuHover
      background: none !important;
    }
  }

  // the scroll bar appears when the sub-menu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
